package main

/*
#cgo LDFLAGS: -L${SRCDIR} -lmirage
#include <stdlib.h>
extern int mirage(char* cmd);
*/
import "C"
import "unsafe"

func main() {
	cmd := C.CString("notepad")
	defer C.free(unsafe.Pointer(cmd))

	if C.mirage(cmd) != 0 {
		println("Command execution failed")
	}
}
